package com.hspedu.hspliving;

import com.hspedu.hspliving.commodity.service.CategoryService;
import com.hspedu.hspliving.commodity.service.impl.CategoryServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.TestComponent;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import javax.annotation.Resources;

/**
 * @author 韩顺平
 * @version 1.0
 */
@SpringBootTest
public class T1 {
    public static void main(String[] args) {

        /**
         * public static Long valueOf(long l) {
         *         final int offset = 128;
         *         if (l >= -128 && l <= 127) { // will cache
         *             return LongCache.cache[(int)l + offset];
         *         }
         *         return new Long(l);
         * }
         */
        Long a = 128l;
        Long b = 128l;
        System.out.println(a == b);
    }

}
